﻿<navigation:Page 
        x:Class="PermDoc.Welcome" 
        mc:Ignorable="d"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
        xmlns:controlsToolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit"
        xmlns:toolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit"
        xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" 
        d:DesignWidth="1024"
        d:DesignHeight="768"
        Title="Welcome Page" Loaded="Page_Loaded" Unloaded="Page_Unloaded" MouseMove="Page_MouseMove">
    
    <Grid x:Name="LayoutRoot">

        <Grid.ColumnDefinitions>
            <ColumnDefinition MinWidth="250" MaxWidth="300" Width="250" />
            <ColumnDefinition MinWidth="80" MaxWidth="100" Width="80" />
            <ColumnDefinition MinWidth="10" MaxWidth="10" Width="10" />
            <ColumnDefinition MinWidth="10" MaxWidth="10" Width="10" />
            <ColumnDefinition MinWidth="10" MaxWidth="10" Width="10" />
            <ColumnDefinition MinWidth="250" MaxWidth="300" Width="250" />
            <ColumnDefinition MinWidth="80" MaxWidth="100" Width="80" />
            <ColumnDefinition MinWidth="10" MaxWidth="10" Width="10" />
            <ColumnDefinition Width="1*" />
        </Grid.ColumnDefinitions>

        <Grid.RowDefinitions>
            <RowDefinition Height="30" />
            <RowDefinition Height="30" />
            <RowDefinition Height="30" />
            <RowDefinition Height="30" />
            <RowDefinition Height="30" />
            <RowDefinition Height="30" />
            <RowDefinition Height="30" />
            <RowDefinition Height="80" />
            <RowDefinition Height="30" />
            <RowDefinition Height="30" />
            <RowDefinition Height="30" />
            <RowDefinition/>
        </Grid.RowDefinitions>

        <StackPanel Grid.Column="0" Grid.Row="0" Grid.RowSpan="1" Grid.ColumnSpan="1"
                    Background="PapayaWhip">
            <TextBlock 
                Text="Дата создания : " 
                Margin="0,5,0,0"
                HorizontalAlignment="Right" VerticalAlignment="Center"/>
        </StackPanel>
        
        <StackPanel Grid.Column="0" Grid.Row="1" Grid.RowSpan="1" Grid.ColumnSpan="1">
            <TextBlock 
                Text="Общее кол-во документов : " 
                Margin="0,5,0,0"
                HorizontalAlignment="Right" VerticalAlignment="Center"/>
        </StackPanel>
        <StackPanel Grid.Column="1" Grid.Row="1" Grid.RowSpan="1" Grid.ColumnSpan="1">
            <TextBox 
                Name="oDocCountTotal_new"
                Text="{Binding DocCountTotal_new}" 
                IsReadOnly="True"
                Height="28" Width="80"
                HorizontalAlignment="Left"  VerticalAlignment="Center"/>
        </StackPanel>

        <StackPanel Grid.Column="0" Grid.Row="2" Grid.RowSpan="1" Grid.ColumnSpan="1">
            <TextBlock 
                Text="Документов сегодня : " 
                Margin="0,5,0,0"
                HorizontalAlignment="Right" VerticalAlignment="Center"/>
        </StackPanel>
        <StackPanel Grid.Column="1" Grid.Row="2" Grid.RowSpan="1" Grid.ColumnSpan="1">
            <TextBox 
                Name="oDocCountToDay_new"
                Text="{Binding DocCountToDay_new}" 
                IsReadOnly="True"
                Height="28" Width="80"
                HorizontalAlignment="Left"  VerticalAlignment="Center"/>
        </StackPanel>

        <StackPanel Grid.Column="0" Grid.Row="3" Grid.RowSpan="1" Grid.ColumnSpan="1">
            <TextBlock 
                Text="вчера : " 
                Margin="0,5,0,0"
                HorizontalAlignment="Right" VerticalAlignment="Center"/>
        </StackPanel>
        <StackPanel Grid.Column="1" Grid.Row="3" Grid.RowSpan="1" Grid.ColumnSpan="1">
            <TextBox 
                Name="oDocCountYesterDay_new"
                Text="{Binding DocCountYesterDay_new}"
                IsReadOnly="True"
                Height="28" Width="80"
                HorizontalAlignment="Left"  VerticalAlignment="Center"/>
        </StackPanel>

        <StackPanel Grid.Column="0" Grid.Row="4" HorizontalAlignment="Left" Width="250">
            <TextBlock 
                Text="за прошлую неделю : " 
                Margin="0,5,0,0"
                HorizontalAlignment="Right" VerticalAlignment="Center"/>
        </StackPanel>
        <StackPanel Grid.Column="1" Grid.Row="4" Grid.RowSpan="1" Grid.ColumnSpan="1">
            <TextBox 
                Name="oDocCountLastWeek_new"
                Text="{Binding DocCountLastWeek_new}"
                IsReadOnly="True"
                Height="28" Width="80"
                HorizontalAlignment="Left"  VerticalAlignment="Center"/>
        </StackPanel>

        <StackPanel Grid.Column="0" Grid.Row="5" Grid.RowSpan="1" Grid.ColumnSpan="1">
            <TextBlock 
                Text="за прошлый месяц : " 
                Margin="0,5,0,0"
                HorizontalAlignment="Right" VerticalAlignment="Center"/>
        </StackPanel>
        <StackPanel Grid.Column="1" Grid.Row="5" Grid.RowSpan="1" Grid.ColumnSpan="1">
            <TextBox 
                Name="oDocCountLastMonth_new"
                Text="{Binding DocCountLastMonth_new}"
                IsReadOnly="True"
                Height="28" Width="80"
                HorizontalAlignment="Left"  VerticalAlignment="Center"/>
        </StackPanel>

        <StackPanel Grid.Column="0" Grid.Row="6" Grid.RowSpan="1" Grid.ColumnSpan="1">
            <TextBlock 
                Text="Состояние процесса : " TextWrapping="Wrap"
                HorizontalAlignment="Center" VerticalAlignment="Bottom" />
        </StackPanel>
        <StackPanel Grid.Column="0" Grid.Row="7" Grid.RowSpan="1" Grid.ColumnSpan="1" >
            <controlsToolkit:HeaderedContentControl
                    Name="SplashScreenInvalidate"
                    Header="Обновление данных" 
                    HorizontalAlignment="Center" 
                    VerticalAlignment="Center"
                    Visibility="Visible">
                <controlsToolkit:BusyIndicator 
                        IsBusy="True" 
                        BusyContent="Процесс не требует ожидания." 
                        DisplayAfter="0" >
                    <ContentControl />
                </controlsToolkit:BusyIndicator>
            </controlsToolkit:HeaderedContentControl>
        </StackPanel>

        <StackPanel Grid.Column="0" Grid.Row="8" Grid.RowSpan="1" Grid.ColumnSpan="1" >
            <TextBlock 
                Text="Документы загружены с даты : " TextWrapping="Wrap"
                HorizontalAlignment="Center" VerticalAlignment="Bottom" />
        </StackPanel>

        <StackPanel Grid.Column="1" Grid.Row="8" Grid.RowSpan="1" Grid.ColumnSpan="1" >
            <TextBox 
                    Name="oBeforeCreated"
                    Text="{Binding BeforeCreated, Mode=OneWay, StringFormat='dd.MM.yyyy'}"
                    IsReadOnly="True"
                    Height="28" Width="80"
                    HorizontalAlignment="Left"  VerticalAlignment="Center" 
                    Background="WhiteSmoke" />
        </StackPanel>

        <StackPanel Grid.Column="5" Grid.Row="0" Grid.RowSpan="1" Grid.ColumnSpan="1" Background="Cornsilk">
            <TextBlock 
                Text="Дата модификации : " 
                Margin="0,5,0,0"
                HorizontalAlignment="Right" VerticalAlignment="Center"/>
        </StackPanel>


        <StackPanel Grid.Column="5" Grid.Row="1" Grid.RowSpan="1" Grid.ColumnSpan="1">
            <TextBlock 
                Text="Общее кол-во документов : " 
                Margin="0,5,0,0"
                HorizontalAlignment="Right" VerticalAlignment="Center"/>
        </StackPanel>
        <StackPanel Grid.Column="6" Grid.Row="1" Grid.RowSpan="1" Grid.ColumnSpan="1">
            <TextBox 
                Name="oDocCountTotal_edt"
                Text="{Binding DocCountTotal_edt}" 
                IsReadOnly="True"
                Height="28" Width="80"
                HorizontalAlignment="Left"  VerticalAlignment="Center"/>
        </StackPanel>

        <StackPanel Grid.Column="5" Grid.Row="2" Grid.RowSpan="1" Grid.ColumnSpan="1">
            <TextBlock 
                Text="Документов сегодня : " 
                Margin="0,5,0,0"
                HorizontalAlignment="Right" VerticalAlignment="Center"/>
        </StackPanel>
        <StackPanel Grid.Column="6" Grid.Row="2" Grid.RowSpan="1" Grid.ColumnSpan="1">
            <TextBox 
                Name="oDocCountToDay_edt"
                Text="{Binding DocCountToDay_edt}" 
                IsReadOnly="True"
                Height="28" Width="80"
                HorizontalAlignment="Left"  VerticalAlignment="Center"/>
        </StackPanel>

        <StackPanel Grid.Column="5" Grid.Row="3" Grid.RowSpan="1" Grid.ColumnSpan="1">
            <TextBlock 
                Text="вчера : " 
                Margin="0,5,0,0"
                HorizontalAlignment="Right" VerticalAlignment="Center"/>
        </StackPanel>
        <StackPanel Grid.Column="6" Grid.Row="3" Grid.RowSpan="1" Grid.ColumnSpan="1">
            <TextBox 
                Name="oDocCountYesterDay_edt"
                Text="{Binding DocCountYesterDay_edt}"
                IsReadOnly="True"
                Height="28" Width="80"
                HorizontalAlignment="Left"  VerticalAlignment="Center"/>
        </StackPanel>

        <StackPanel Grid.Column="5" Grid.Row="4" HorizontalAlignment="Left" Width="250">
            <TextBlock 
                Text="за прошлую неделю : " 
                Margin="0,5,0,0"
                HorizontalAlignment="Right" VerticalAlignment="Center"/>
        </StackPanel>
        <StackPanel Grid.Column="6" Grid.Row="4" Grid.RowSpan="1" Grid.ColumnSpan="1">
            <TextBox 
                Name="oDocCountLastWeek_edt"
                Text="{Binding DocCountLastWeek_edt}"
                IsReadOnly="True"
                Height="28" Width="80"
                HorizontalAlignment="Left"  VerticalAlignment="Center"/>
        </StackPanel>

        <StackPanel Grid.Column="5" Grid.Row="5" Grid.RowSpan="1" Grid.ColumnSpan="1">
            <TextBlock 
                Text="за прошлый месяц : " 
                Margin="0,5,0,0"
                HorizontalAlignment="Right" VerticalAlignment="Center"/>
        </StackPanel>

        <StackPanel 
            Grid.Column="1" Grid.Row="7" Grid.RowSpan="1" Grid.ColumnSpan="1"
            Orientation="Vertical"
                    >
            <Ellipse 
                Name="oEye" 
                Visibility="Collapsed"
                Height="25" Width="25" 
                HorizontalAlignment="Left" VerticalAlignment="Top"
                Stroke="Maroon" StrokeThickness="5" Fill="Gold" />
            
            
            <sdk:Label 
                Name="oInvalidateCountCurDay"
                Content="{Binding InvalidateCountCurDay}" />
            
            <sdk:Label 
                Name="oInvalidateCountTotal"
                Content="{Binding InvalidateCountTotal}" />
            
        </StackPanel>

        <StackPanel Grid.Column="6" Grid.Row="5" Grid.RowSpan="1" Grid.ColumnSpan="1">
            <TextBox 
                Name="oDocCountLastMonth_edt"
                Text="{Binding DocCountLastMonth_edt}"
                IsReadOnly="True"
                Height="28" Width="80"
                HorizontalAlignment="Left"  VerticalAlignment="Center"/>
        </StackPanel>

    </Grid>

    

</navigation:Page>
